﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCS.SocialHttpApi.Models
{
    public record Response_AGV(ResponseHeader header);
    public record Request_AGV_task_Status(RequestHeader header, AGVTaskStatus body);
    public record Request_AGV_Equipment_Status(RequestHeader header, AGVEquipmentStatus body);
    public record Request_AGV_Open_Door(RequestHeader header, RequestDoor body);

    public class AGVTaskStatus
    {
        public string TaskId { get; set; }
        public int TaskStatus { get; set; }
    }

    public class RequestDoor
    {
        public string EquipmentNo { get; set; }
        public int Type { get; set; }
    }

    public class AGVEquipmentStatus
    {
        public string EquipmentNo { get; set; }
        public int OnlineMode { get; set; }
        public int Status { get; set; }
        public int? CurrentTaskId { get; set; }
        public string? ErrorMessage { get; set; }
    }
}